package com.sixth.controller.wx;

import com.sixth.bean.MarketStorage;
import com.sixth.bean.common.BaseRespVo;
import com.sixth.constant.PropertiesConstant;
import com.sixth.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author qys
 * @Description
 * @date 2022/9/11 2:19
 */
@RestController
@RequestMapping("wx/storage")
public class WXStorageController {
    @Autowired
    StorageService storageService;


    @PostMapping("upload")
    public BaseRespVo wxStorageUpload(MultipartFile file) {
        MarketStorage res = storageService.wxStorageUpload(file);
        return BaseRespVo.ok(res);
    }
}
